//
//  BuyOnlineTicketRequest.m
//  EasyToo
//
//  Created by zhengzhe on 13-8-25.
//
//

#import "BuyOnlineTicketRequest.h"

@implementation BuyOnlineTicketRequest

- (id)buyOnlineTickets:(id<ServerCommunicationDelegate>)delegate
            foretellId:(NSString*)foretellId
               seatIds:(NSString*)seatIds
                  fees:(NSString*)fees
                prices:(NSString*)prices
                 count:(NSString*)count
{
    self = [super init];
    if (self) {
        self.delegate = delegate;
        
        self.requestName = @"BuyOnlineTicketRequest";
        
        [self.headerJsonDict setObject:@"018007" forKey:@"TranCode"];
        
        [self.bodyJsonDict setObject:foretellId forKey:@"foretellId"];
        [self.bodyJsonDict setObject:seatIds forKey:@"seatIds"];
        [self.bodyJsonDict setObject:fees forKey:@"fees"];
        [self.bodyJsonDict setObject:prices forKey:@"prices"];
        [self.bodyJsonDict setObject:count forKey:@"count"];
        
        [self buildJsonRequest];
    }
    return self;
}


@end
